<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="stylesheet" href="http://localhost/obj/movier/Template/default/css/inc.css" />
	<link rel="stylesheet" href="http://localhost/obj/movier/Template/default/css/public.css" />
	<!--[if IE 7]>
		<link rel="stylesheet" href="http://localhost/obj/movier/Template/default/css/ico-ie7.css">
	<![endif]-->
	<script type="text/javascript" src="http://localhost/obj/movier/Template/default/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="http://localhost/obj/movier/Template/default/js/public.js"></script>
	<script type="text/javascript" src="http://localhost/obj/movier/Template/default/js/slide.js"></script>
	<title>系列 - <?php echo $const['webname'];?></title>
<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?></head>
<body>
	<!-- 顶部开始 -->
	<div class="bgblack">
		<div class="w1200 auto p5 bgblack">
			<a class="white-2 af mr20" href="http://localhost/obj/movier">老地方电影</a>
		</div>
	</div>
	<!-- 顶部结束 -->
	<!-- menu开始 -->
	<div class="h65 bgwhite rel zix2 fixMenu">
		<div class="w1200 auto h65 rel fix">
			<div class="logo t0 l0 w100 h65 l mr30"><img src="http://localhost/obj/movier/Template/default/img/logo.png" alt="" /></div>
			<ul class="l fm rel menu">
					<li class="l lh60 mr30" act="1"><a class="w50 tc dib f16 black" href="http://localhost/obj/movier">首页</a></li>
						<?php
		$re = M('category')->limit(5)->where('pid=0')->all();
		foreach ($re as $c) :
			if(26==$c['cid']) $c['act']='act="1"';
			$c['url']=U($c['url'],array('cid'=>$c['cid'],'nav'=>$c['cid']));
		?>
					<li class="l lh60 mr30" <?php echo $c['act'];?>><a class="w50 tc dib f16 black" href="<?php echo $c['url'];?>"><?php echo $c['cname'];?></a></li>
				<?php endforeach ;?>
				<span class="movebg dib w50 bgblue h4 abs b0 l0"></span>
			</ul>
			<div class="r abs t20 r10">
				<form action="<?php echo U('search/index');?>" method="get" class="dib ">
					<div class="dib bdc w200 rel">
						<input class="p5 pct80 bd0" type="text" name="keys" />
						<input type="submit" class="hand gray abs t3 r5 bd0 search" value="&emsp;&ensp;" />
					</div>
				</form>
				<p class="p5 dib fm ml10">
					<?php if($_SESSION['user']['uid']){?>
						<span class="f14 black mr10">欢迎您： <a class="gray a f14" href="<?php echo U('User/index');?>"><i class="icon-user mr3 gray"></i><?php echo $_SESSION['user']['email'];?> [ <?php echo $_SESSION['user']['nickname'];?> ]</a></span>
						<a class="f14 black" href="<?php echo U('User/out');?>"><i class="icon-signout mr3 gray"></i>退出</a>
						<?php if($_SESSION['user']['level'] > 0){?>
							| <a class="f14 blue5 tsblack" href="http://localhost/obj/movier?a=admin">后台管理</a>
							<?php if($_SESSION['user']['level'] == 9){?><span class="p2 pl5 pr5 rad50 white bgmaroon">超</span><?php }?>
						<?php }?>
					<?php  }else{ ?>
						<a class="f14 black mr10" href="<?php echo U('User/login');?>">登录</a>
						<a class="f14 black" href="<?php echo U('User/reg');?>">注册</a>
					<?php }?>
					
				</p>
			</div>
		</div>
	</div>
	<!-- menu结束 -->

	<!-- 活动slide开始 -->
	<div class="w1180 h350 auto mt20 fix of rel" id="s2">
		<div class="pic w900 h350 of bggreen l">
		<?php $hd["list"]["s"]["total"]=0;if(isset($slide) && !empty($slide)):$_id_s=0;$_index_s=0;$lasts=min(1000,count($slide));
$hd["list"]["s"]["first"]=true;
$hd["list"]["s"]["last"]=false;
$_total_s=ceil($lasts/1);$hd["list"]["s"]["total"]=$_total_s;
$_data_s = array_slice($slide,0,$lasts);
if(count($_data_s)==0):echo "";
else:
foreach($_data_s as $key=>$s):
if(($_id_s)%1==0):$_id_s++;else:$_id_s++;continue;endif;
$hd["list"]["s"]["index"]=++$_index_s;
if($_index_s>=$_total_s):$hd["list"]["s"]["last"]=true;endif;?>

			<a href="<?php echo U('content',array('xid'=>$s['xid'],'cid'=>$_GET['cid'],'nav'=>$_GET['nav']));?>" title="1" class="abs <?php if($hd['list']['s']['index'] <> 1){?>dn<?php }?>"><img width="900" src="http://localhost/obj/movier/<?php echo $s['slidePic'];?>" alt="" /></a>
		<?php $hd["list"]["s"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
		</div>
		<div class="w280 h350 bgblack l rel ls2 slideSub">
			<?php $hd["list"]["s"]["total"]=0;if(isset($slide) && !empty($slide)):$_id_s=0;$_index_s=0;$lasts=min(1000,count($slide));
$hd["list"]["s"]["first"]=true;
$hd["list"]["s"]["last"]=false;
$_total_s=ceil($lasts/1);$hd["list"]["s"]["total"]=$_total_s;
$_data_s = array_slice($slide,0,$lasts);
if(count($_data_s)==0):echo "";
else:
foreach($_data_s as $key=>$s):
if(($_id_s)%1==0):$_id_s++;else:$_id_s++;continue;endif;
$hd["list"]["s"]["index"]=++$_index_s;
if($_index_s>=$_total_s):$hd["list"]["s"]["last"]=true;endif;?>

				<div class="p20 fm <?php if($hd['list']['s']['index'] <> 1){?>dn<?php }?> ">
					<h5 class="white f18 mt10"><?php echo $s['title'];?></h5>
					<p class="red mt10"><?php echo getXilieComp($s['comp']);?>更新...</p>
					<p class="white f14 mt30"><?php echo mb_substr($s['intros'],0,130,'utf8');?>...</p>
					<a href="<?php echo U('content',array('xid'=>$s['xid'],'cid'=>$_GET['cid'],'nav'=>$_GET['nav']));?>" class="bgred1 dib p5 white f14 abs b10 l10 rad2 play">点击查看</a>
				</div>
			<?php $hd["list"]["s"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
		</div>
	</div>
	<!-- 活动slide结束 -->





	<!-- 内容开始 -->
	<div class="w1180 auto mt20 fix">
		<?php $hd["list"]["x"]["total"]=0;if(isset($xilie) && !empty($xilie)):$_id_x=0;$_index_x=0;$lastx=min(1000,count($xilie));
$hd["list"]["x"]["first"]=true;
$hd["list"]["x"]["last"]=false;
$_total_x=ceil($lastx/1);$hd["list"]["x"]["total"]=$_total_x;
$_data_x = array_slice($xilie,0,$lastx);
if(count($_data_x)==0):echo "";
else:
foreach($_data_x as $key=>$x):
if(($_id_x)%1==0):$_id_x++;else:$_id_x++;continue;endif;
$hd["list"]["x"]["index"]=++$_index_x;
if($_index_x>=$_total_x):$hd["list"]["x"]["last"]=true;endif;?>

			<div class="xlist l mr25 mt10 w210 bgwhite rel">
				<img width="210" height="280" src="http://localhost/obj/movier/<?php echo $x['pic'];?>" alt="" />
				<a href="<?php echo U('content',array('xid'=>$x['xid'],'cid'=>$_GET['cid'],'nav'=>$_GET['nav']));?>" class="bga abs t0 l0 bgblack white h230 opa90 dn pl20 pr20 pt50 of lh20" style="width:170px;"><?php echo $x['intros'];?></a>
				<span class="tip abs bgred1 white t10 l-10 p5 pr10 pl15"><i></i>已更新到<?php echo $x['act'];?>集</span>
				<h5 class="black pl10 mt10"><a href="" class="black2"><?php echo $x['title'];?></a></h5>
				<p class="orange pl10 mt10"><?php echo getXilieComp($x['comp']);?>更新</p>
				<p class=" pl10 mt10 mb10 pb5"> <a href="" class="black"><i class="pt1 pb1 pl3 pr5 tc f14 fa b rad2 bgblue white">+</i> 已有<span class="gray"><?php echo $x['ding'];?></span>人追过该系列</a></p>
			</div>
		<?php $hd["list"]["x"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
	</div>
	<div class="page mt10 fix"><?php echo $page;?></div>
	<!-- 内容结束 -->


<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?>	<!-- 底部开始 -->
	<div class="bgblack h100 white-2 mt20">
		<!-- <div class="fs tc pt10">
			<a href="" class="dib p5 white-2">合作推广</a>
			<a href="" class="dib p5 white-2">联系我们</a>
			<a href="" class="dib p5 white-2">加入我们</a>
		</div> -->
		<div class="pt20">
			<p class="tc p5"><?php echo $const['bottom1'];?></p>
			<p class="tc p5"><?php echo $const['bottom2'];?></p>
		</div>
	</div>
	<!-- 底部结束 -->
</body>
</html>